package cn.eeepay.framework.service.unTransactionalImpl.job;

import cn.eeepay.framework.service.WarningConfigTemplateService;
import cn.eeepay.framework.service.unTransactionalImpl.abstractJob.ScheduleJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

//跳转集群金额短信预警
@Component
@Scope("prototype")
public class JumpWarnJob extends ScheduleJob {

    private static final Logger log = LoggerFactory.getLogger(JumpWarnJob.class);

    @Autowired
    private WarningConfigTemplateService warningConfigTemplateService;

    @Override
    protected void runTask(String runNo) {
        log.info("跳转集群金额短信预警开始...,runningNo:{}",runNo);
        warningConfigTemplateService.earlyWarningCheck();
        log.info("跳转集群金额短信预警结束...,runningNo:{}",runNo);
    }
}
